package config;


import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;

public class regHandle {

/**
 *
 */

   @PostMapping("regHandle.do")
   public String regHandle(HttpServletRequest request){

       String username  = request.getParameter("username");
       String password = request.getParameter("password");
       String age = request.getParameter("age");
       String email = request.getParameter("email");
        String ip = request.getRemoteAddr();
       System.out.printf(ip);
       System.out.printf("username:"+username+"password:"+password+"age:"+age+"email:"+email);

       return "OK";

   }

}
